package com.atguigu.staservice.client;

import com.atguigu.commonutils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * Created by Miracle yaochengwei on 2020/9/17 11:11
 */
@Component//交给spring管理
@FeignClient("service-ucenter")//指定你调的服务的名字
public interface UcenterClient {
    //查询而某一天的注册人数
    @GetMapping("/educenter/member/countRegister/{day}")//返回值写R写int类型都可以
    public R countRegister(@PathVariable("day") String day);
}
